package sha

import (
	"crypto/sha1"
	"crypto/sha256"
	"crypto/sha512"

	"gitee.com/injoyai/goutil/crypt"
)

func Encrypt256(s string) string {
	return crypt.New(sha256.New()).EncryptBase64(s)
}

func Encrypt1(s string) string {
	return crypt.New(sha1.New()).EncryptBase64(s)
}

func Encrypt512(s string) string {
	return crypt.New(sha512.New()).EncryptBase64(s)
}
